#include "apple.h"
#include "gamedefine.h"


apple::apple(qreal x, qreal y,QObject*parent):QObject(parent),Specialteam()
{
    setPos(x,y);
    appleanmation=new anmation(this,"apple");
    connect(appleanmation, &anmation::frameChanged, this, [this](const QPixmap& frame) {
        setPixmap(frame);});
    appleanmation->animationtimer->start(70);
    setData(iscollision,true);
    setData(ObjectType,5);

}


